#!/usr/bin/python

dict_1 = {"name" : "Lucy","age" : "21"}
dict_2 = dict(name="Lucy",age="21")
dict_3 = dict(zip(["name","age"],["Lucy","21"]))
dict_4 = dict({"name" : "Lucy","age" : "21"})

print "dict_1 => " + str(dict_1)
print "dict_2 => " + str(dict_2)
print "dict_3 => " + str(dict_3)
print "dict_4 => " + str(dict_4)

print "dict_1[\"name\"] => " + dict_1["name"]
dict_1["name"] = "Kidding"
print "modify => " + dict_1["name"] 
del dict_1["name"] 
print "dict_1 => " + str(dict_1)

print "dict_2 get => " + dict_2.get("name")
print "dict_2 item => " + str(dict_2.items())
print "dict_2 keys => " + str(dict_2.keys())

dict_1.setdefault("address","shanghai");
print "setdefault dict_1 => " + str(dict_1)
